// eslint-disable-next-line
import { UserLayout, BasicLayout } from '@/layouts'

/**
 * 工作台
 */
export const indexRouterMap = [
  {
    path: '/index',
    name: 'index',
    component: 'DashBoard',
    meta: { title: '工作台', keepAlive: true, icon: 'home', noCache: false }
  },
  {
    path: '/account/settings/index',
    name: 'AccountSettingsIndex',
    component: 'AccountSettingsIndex',
    meta: { title: '个人设置', keepAlive: true, noCache: false },
    hidden: true
  },
  {
    path: '/system/notice/NoticeReadIndex',
    name: 'NoticeReadIndex',
    component: 'NoticeReadIndex',
    meta: { title: '通知公告阅读', keepAlive: true, noCache: false },
    hidden: true
  }
]
/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import('@/views/user/Login')
      },
      {
        path: 'register',
        name: 'register',
        component: () => import('@/views/user/Register')
      },
      {
        path: 'password',
        name: 'password',
        component: () => import('@/views/user/Password')
      }
    ]
  },
  {
    path: '/tool/ajreport/screen/designer/index',
    name: 'aJReportScreenDesignerIndex',
    route: true,
    hidden: true,
    component: resolve => require(['@/views/tool/ajreport/screen/designer/Index'],resolve),
    meta: { title: '大屏报表设计' }
  },
  {
    path: '/tool/ajreport/screen/viewer/index',
    name: 'aJReportScreenViewerIndex',
    route: true,
    hidden: true,
    component: resolve => require(['@/views/tool/ajreport/screen/viewer/Index'],resolve),
    meta: { title: '大屏报表预览' }
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/exception/404')
  }

]
